﻿//namespace System.Runtime.CompilerServices
//{
//    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
//    file sealed class InterceptsLocationAttribute(string filePath, int line, int character) : Attribute { }
//}

//namespace InterceptorExampleConsoleApp
//{
//    public static class PersonInterceptor
//    {
//        [System.Runtime.CompilerServices.InterceptsLocation(@"C:\Users\curitis\Desktop\ConsoleApp1\ConsoleApp1\Program.cs", line: 4, character: 8)]
//        public static void Interceptor(this Person person)
//        {
//            Console.WriteLine("befor");
//            person.Show();
//            Console.WriteLine("after");
//        }
//    }
//}




////------------------------------------------------------------------------------
//// <auto-generated>
////     This code was generated by a tool.
////
////     Changes to this file may cause incorrect behavior and will be lost if
////     the code is regenerated.
//// </auto-generated>
////------------------------------------------------------------------------------

//namespace System.Runtime.CompilerServices
//{
//    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
//    file sealed class InterceptsLocationAttribute(string filePath, int line, int character) : Attribute { }
//}

//namespace InterceptorExampleConsoleApp
//{
//    public static class PersonInterceptor
//    {
//        [System.Runtime.CompilerServices.InterceptsLocation(@"C:\Users\curitis\Desktop\RoslynApi\InterceptorExampleConsoleApp\Program.cs", 7, 8)]
//        public static void Interceptor(this Person person)
//        {
//            Console.WriteLine("befor");
//            person.Show();
//            Console.WriteLine("after");
//        }

//    }
//}